package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPeoplecountMapper;
import com.ruoyi.system.domain.SysPeoplecount;
import com.ruoyi.system.service.ISysPeoplecountService;
import com.ruoyi.common.core.text.Convert;

/**
 * 时间段人流Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-10-12
 */
@Service
public class SysPeoplecountServiceImpl implements ISysPeoplecountService 
{
    @Autowired
    private SysPeoplecountMapper sysPeoplecountMapper;

    /**
     * 查询时间段人流
     * 
     * @param id 时间段人流ID
     * @return 时间段人流
     */
    @Override
    public SysPeoplecount selectSysPeoplecountById(Long id)
    {
        return sysPeoplecountMapper.selectSysPeoplecountById(id);
    }

    /**
     * 查询时间段人流列表
     * 
     * @param sysPeoplecount 时间段人流
     * @return 时间段人流
     */
    @Override
    public List<SysPeoplecount> selectSysPeoplecountList(SysPeoplecount sysPeoplecount)
    {
        return sysPeoplecountMapper.selectSysPeoplecountList(sysPeoplecount);
    }

    /**
     * 新增时间段人流
     * 
     * @param sysPeoplecount 时间段人流
     * @return 结果
     */
    @Override
    public int insertSysPeoplecount(SysPeoplecount sysPeoplecount)
    {
        return sysPeoplecountMapper.insertSysPeoplecount(sysPeoplecount);
    }

    /**
     * 修改时间段人流
     * 
     * @param sysPeoplecount 时间段人流
     * @return 结果
     */
    @Override
    public int updateSysPeoplecount(SysPeoplecount sysPeoplecount)
    {
        return sysPeoplecountMapper.updateSysPeoplecount(sysPeoplecount);
    }

    /**
     * 删除时间段人流对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysPeoplecountByIds(String ids)
    {
        return sysPeoplecountMapper.deleteSysPeoplecountByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除时间段人流信息
     * 
     * @param id 时间段人流ID
     * @return 结果
     */
    @Override
    public int deleteSysPeoplecountById(Long id)
    {
        return sysPeoplecountMapper.deleteSysPeoplecountById(id);
    }
}
